 
/*
 * @Author: ZhouNan
 * @Date: 2022-04-11 20:09:18
 * @LastEditors: ZhouNan
 * @LastEditTime: 2022-04-11 22:45:47
 * @FilePath: \export_ts\src\util.ts
 * @Description: 
 */
import Config from './config'

function getAllComponet(): string[] {
    // 有机会改成直接获取引擎的组件
    return Config.getCompoentStrConfig();
}

function clone(data: any) {
    if (Array.isArray(data) || typeof data == 'object') {
        return JSON.parse(JSON.stringify(data));
    }
    return data;
}

export default {
    getAllComponet,
    clone,
}